<?






$query="SELECT race_ville FROM urace WHERE race_id=$user_race";
$resultat=mysql_query($query);
$tmp=mysql_fetch_row($resultat);


$i=0;
$classex=EXPLODE("/",$tmp[0]);
FOREACH($classex as $element){ //FOREACH #02 d'autorisation  
			 
  	    $image[$i]=$element;
		$image_id=$i ;      
		$i++;
}//	   






?>


<CENTER><div align="center" CLASS="LINE1"></div></CENTER>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS=TD2>
        <tr> 
          <td><p align="center"><strong><u><font size="6">Enregistrement de personnage.</font></u></strong></p>
            <div align="center">
              <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                <tr>
                  <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" CLASS=TD1>
                      <tr> 
                        <td><div align="center"> <u><strong><font size="5">Choix 
                            du graphisme de votre ville.</font></strong></u></div></td>
                      </tr>
                    </table></td>
                </tr>
              </table>
              <br>
            </div>
            <form action="index.php" method="POST" name="form1" value="ville">
              <p>&nbsp;</p>
              <p> 
                <?
IF (!empty($erreur)){
	  erreur($erreur,$templates);
}
$i=0;
 FOREACH($image as $img_ville){
	echo "<input type=\"radio\" name=\"ville\" value=\"$image[$i]\">";
	
	//$lien2="window.open('../visualisation/race.php?tmppath=../&classeid=$classe_id[$i]', 'race', 'scrollbars=yes,status=no,top=0,left=0,width=420,height=500')";

	
	echo"<img src=\"images/batiment-carte/ville".$image[$i]."-4.png\" width=\"50\" height=\"50\" alt=\"$image[$i]\">";
	 
              	
 	$i++;
	echo "<BR>";
 }


?>
                <br>
                </p>
              <p value="ville"> </p>
              <p align="center"> 
                <?
echo"<input name=\"$SID\" type=\"hidden\" id=\"$SID\" value=\"$SID\">";
         echo"<input name=\"p\" type=\"hidden\" id=\"p\" value=\"creation_perso\">";

         $MODE="perso_ville";
         SESSION_REGISTER("MODE");
         $CREATION_PERSO=0;
         SESSION_REGISTER("CREATION_PERSO");

		
?>
                <input name="mode" type="hidden" id="mode" value="ville">
                <input background : url(fond.jpg) type="submit" name="Submit" value="Suivant">
              </p>
            </form></tr>
      </table></td>
  </tr>
</table>
<CENTER><div align="center" CLASS="LINE1"></div></CENTER>

<?
IF ($erreur){
  echo"<script language=\"javascript\">
                      alert('$erreur');
                      </script>";

}
?>
